package config

// name: 'resume_web'
// host: '192.168.61.84'
// port: 8086
// userservice:
//
//	name: 'resume_srv'
//
// jwt:
//
//	key: 'UZiwCS5&sx0dCLvofW@*kcDvJjp$S&&*'
//
// consul:
//
//	host: '192.168.61.84'
//	port: 8500
type ResumeConfig struct {
	Name string `mapstructure:"name"`
}

type ConsulConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type JWTInfo struct {
	SigningKey string `mapstructure:"key"`
}

type ServerConfig struct {
	Name         string       `mapstructure:"name"`
	Host         string       `mapstructure:"host"`
	Port         int          `mapstructure:"port"`
	JWTInfo      JWTInfo      `mapstructure:"jwt"`
	Tags         []string     `mapstructure:"tags"`
	ResumeConfig ResumeConfig `mapstructure:"resumeservice"`
	ConsulConfig ConsulConfig `mapstructure:"consul"`
}
